package istrings

func MaxLen(str string, maxLen int) string {
	if len(str) <= maxLen {
		return str
	}

	return str[:maxLen]
}
